<?php

use Drupal\shusy_distribution\Entity\ShusyDistribution;

function shusy_distribution_shusy_distribution_add_page() {
  $e = new ShusyDistribution();
  module_load_include('inc', 'shusy_distribution', 'shusy_distribution.forms');
  return drupal_get_form('shusy_distribution_shusy_distribution_entity_form', $e, 'add');
}

function shusy_distribution_shusy_distribution_view_page(ShusyDistribution $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_distribution_shusy_distribution_edit_page(ShusyDistribution $e) {
  module_load_include('inc', 'shusy_distribution', 'shusy_distribution.forms');
  return drupal_get_form('shusy_distribution_shusy_distribution_entity_form', $e, 'edit');
}

function shusy_distribution_shusy_distribution_delete_page(ShusyDistribution $e) {
  module_load_include('inc', 'shusy_distribution', 'shusy_distribution.forms');
  return drupal_get_form('shusy_distribution_shusy_distribution_delete_form', $e);
}

function shusy_distribution_clear_page() {
  module_load_include('inc', 'shusy_distribution', 'shusy_distribution.forms');
  return drupal_get_form('shusy_distribution_clear_form');
}
